package pro.lepers.portfolio.view.contents.portfolio.data.contents {
	import fr.digitas.flowearth.core.IIterator;
	import fr.digitas.flowearth.core.Iterator;
	import fr.digitas.flowearth.mvc.address.structs.descriptor.INodeDescriptor;

	import pro.lepers.portfolio.view.contents.portfolio.content.ThumbContent;

	/**
	 * @author Pierre Lepers
	 */
	public class AbstractContentData implements INodeDescriptor {

		public static const VIDEO : String = "video";
		public static const IMGS : String = "imgs";
		public static const TEXT : String = "text";
		public static const SWF : String = "swf";
		
			
		public function get type() : String {
			return _type;
		}
		
		public function get width() : Number {
			return _width;
		}
		
		public function get height() : Number {
			return _height;
		}
		
		public function getView() : ThumbContent {
			return null;
		}
		
		
		public function dispose () : void {
		}
		
		
		internal function _parse( datas : XML ) : void {
			_type = datas.@type;
			_width = parseInt( datas.size.@w );
			_height = parseInt( datas.size.@h );
		}

		protected var _type : String;
		protected var _width : Number;
		protected var _height : Number;
		
		
		
		internal var _nId : String;
		
		
		//_____________________________________________________________________________
		//																NODE DESCRIPTOR
		public function getChilds() : IIterator {
			return new Iterator( [] );
		}

		public function getId() : String {
			return _nId;
		}
		
		public function getDefaultId() : String {
			return null;
		}

	}
}
